import * as PathUtils from "../utils/pathUtils";
import type { TimeManageList } from "@model/timeManage";
import { defineStore } from "pinia";

const UseTimeManageList = defineStore("timeManage", {
  state() {
    const timeManageList = PathUtils.timeManageInit;
    return {
      timeManageList: timeManageList,
    };
  },
  actions: {
    setTimeManageList: function (timeManageList: TimeManageList) {
      this.getTimeManageList().setInfo(timeManageList);
    },
    getTimeManageList: function (): TimeManageList {
      return this.timeManageList;
    },
  },
  getters: {},
});
export default UseTimeManageList;
